package com.insideClass.Generics.GenericsInterface;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

import java.util.EnumSet;
import java.util.Set;


/**
 * @author 13699
 */
public class WatercolorSets extends Sets{
    public static void main(String[] args) {
        Set<Watercolors> set1= EnumSet.range(Watercolors.BRILLIANT_RED,Watercolors.VIRIDIAN_HUE);
        Set<Watercolors> set2= EnumSet.range(Watercolors.CERULEAN_BLUE_HUE,Watercolors.BURNT_UMBER);
        System.out.println("set1:"+set1);
        System.out.println("set1:"+set2);
        System.out.println("union(set1,set2):"+union(set1,set2));
        Set<Watercolors> subset=intersection(set1,set2);
        System.out.println("intersection(set1,set2):"+subset);
        System.out.println("difference(set1,set2):"+difference(set1,subset));
        System.out.println("difference(set2,set2):"+difference(set2,subset));
        System.out.println("complement(set1,set2):"+complement(set1,set2));
    }
}
